<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html 
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	xmlns:p="http://primefaces.org/ui"
	lang="en">
	
	<ui:decorate template="/WEB-INF/facelets/conteudoSis.xhtml">
		<ui:define name="form">
			<h:form>
						<p:messages id="mensagens"></p:messages>	
					
						<fieldset>
							
								<div class="control-group">	
									<h:outputLabel value="Nome:" for="nome" styleClass="control-label"/>
									<p:inputText id="nome" value="#{UFMB.entidade.nome}" maxlength="30"/>
								</div>
								
								<div class="control-group">
									<h:outputLabel value="Sigla:" for="sigla" styleClass="control-label"/>
									<p:inputText id="sigla" value="#{UFMB.entidade.sigla}" maxlength="2"/>
								</div>
							
								
							<div class="control-group">
								<p:commandButton 
									value="Gravar" 
									action="#{UFMB.gravar}"
									oncomplete="atualizarUFs();dlg2.hide();"/>
								
							</div>
						</fieldset>
			</h:form>
		</ui:define>
	</ui:decorate>	
</html>